﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace WeaponApplication.logging
{
    public class FileLogger : ILogger
    {
        public void Log(string text)
        {
            StreamWriter writer = new StreamWriter("output.txt", true);
            DateTime now = DateTime.Now;
            writer.Write(now + " ");
            writer.WriteLine(text);
            writer.Close();
        }
    }
}
